package com.tz.service.receivetest.impl;

import com.tz.bean.ReceiveTest;
import com.tz.dao.receiveTest.IReceiveTestMapper;
import com.tz.service.receivetest.IReceiveTestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 *  收货证明 + 检测报告 Service
 */

@Service
public class ReceiveTestServiceImpl implements IReceiveTestService {

    @Resource
     IReceiveTestMapper receivetestMapper;

    @Override
    public int save(ReceiveTest receivetest) {
        return receivetestMapper.save(receivetest);
    }

    @Override
    public HashMap<String, Object> getByOrderno( String orderNo) {
        return receivetestMapper.getByOrderno(orderNo);
    }

    /**
     * 更新
     * @param receivetest
     * @return
     */
    public int update(ReceiveTest receivetest){
        return receivetestMapper.update(receivetest);
    }
}
